public class J02loop {
    public static void main(String[] args) {
        int[][] arr1 = {
                {1,1,1},
                {4,5,6,7,9},
                {6,7,8}
        };

        for (int i = 0; i < arr1.length; i++) {
            System.out.println(arr1[i]);//地址

            int[] tempArr = arr1[i];
            for (int j = 0; j < tempArr.length; j++) {
                System.out.print(tempArr[j]+",");
            }
        }
        System.out.println("====");
        for (int i = 0; i < arr1.length; i++) {
            for (int j = 0; j < arr1[i].length; j++) {
                System.out.print(arr1[i][j]+",");
            }
            System.out.println();
        }
    }
}
